package us.pigsoft.client;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Rectangle;

abstract class GuiElement
{
	Dimension size;
	String id;
	int x, y;
	Color outline;
	Rectangle bounds;
	
	public abstract void pressed(boolean down);
	public abstract void keyPressed(char key);
	public abstract void click();
	public abstract void release();
	public abstract void entered(boolean in);
	public abstract void draw(Graphics2D g);
	public abstract void update();
	
	public GuiElement(int x, int y, Dimension size, Color outline, String id)
	{
		this.size = size;
		this.x = x;
		this.y = y;
		this.outline = outline;
		this.id = id;
		this.bounds = new Rectangle(x, y, size.width, size.height);
	}
	
}
